﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter" mc:Ignorable="d"
	x:Class="ScrumTable.UI.View.Controls.WaitControl"
	x:Name="UserControl"
	d:DesignWidth="100" d:DesignHeight="100">
	<UserControl.Resources>
        <Converter:CalcConverter x:Key="CalcConverterHalf" ValueRight="0.5" CalcType="Multi"/>
        <Converter:CalcConverter x:Key="CalcConverterQuarter" ValueRight="0.25" CalcType="Multi"/>
        <Converter:CalcConverter x:Key="CalcConverterRectWidth" ValueRight="0.08" CalcType="Multi"/>
		<Storyboard x:Key="Rotate" RepeatBehavior="Forever">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:09" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle_Copy" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:10.0500000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle_Copy1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:11" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow1_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.0500000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:09.0500000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow1_2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:09.1000000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow2_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:01.0500000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:10.1000000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow2_2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:10.1500000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow3_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:02.0500000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:11.0500000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Shadow3_2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:11.1000000" Value="1080"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Grid x:Name="GridRectangles">
            <Rectangle x:Name="rectangle" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="rectangle_Copy" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="rectangle_Copy1" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow1_1" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.7">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow1_2" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.3">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow2_1" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.7">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow2_2" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.3">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow3_1" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.7">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<Rectangle x:Name="Shadow3_2" StrokeThickness="3" Margin="0" RenderTransformOrigin="0.5,0.5" Width="{Binding Converter={StaticResource CalcConverterRectWidth}}" VerticalAlignment="Top" Height="{Binding Converter={StaticResource CalcConverterHalf}}" Opacity="0.3">
				<Rectangle.RenderTransform>				
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform CenterY="{Binding Converter={StaticResource CalcConverterQuarter}}"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF033D78" Offset="0"/>
						<GradientStop Color="#004BE8EE" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
		</Grid>
	</Grid>
</UserControl>